package com.yy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yy.entity.Employee;
import com.yy.utils.R;

import javax.servlet.http.HttpServletRequest;

/**
 * create by KongFuning on 2022/7/30
 */
public interface EmployeeService extends IService<Employee> {

    R login(HttpServletRequest request,Employee employee);

    R logout(HttpServletRequest request);

    R pageEmployees(Integer page, Integer pageSize, String name);

    R saveEmployee(Employee employee);

    R toUpdate(String id);

    R updateEmployee(Employee employee);
}
